// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread 'Drive-Thru' 

0006: 9@ == -40

:Location 
wait 0 ms
if 
0100:   actor $PLAYER_ACTOR in_sphere 2376.8237 -1909.3817 13.3828 radius 4.0 4.0 4.0 sphere 1 in_car
else_jump @Location  
jump @Spawn 

:Spawn
0@ = Actor.CurrentCar($PLAYER_ACTOR)
0ACC: show_text_lowpriority "Press TAB to order some food" time 50
wait 0 ms
if 
0AB0:   key_pressed 9
jf @Location
04ED: load_animation "food"
0247: load_model #WMYBELL
Model.Load(2768)
038B: load_requested_models
03BF: set_player $PLAYER_CHAR ignored_by_everyone 1 
02D4: car 0@ turn_off_engine 
7@ = Object.Init(2768, 0.0, 0.0, 0.0)
0ACC: show_text_lowpriority "Thank you sir, your order is on it's way" time 5000
Car.DoorStatus(0@) = 4
wait 3000 ms
009A: 2@ = create_actor_pedtype 4 model #WMYBELL at 2386.1824 -1898.5009 13.5469
0350: set_actor 2@ maintain_position_when_attacked 1 
0446: set_actor 2@ dismemberment_possible 0 
0568: set_actor 2@ untargetable 1 
Actor.SetImmunities(2@, 1, 1, 1, 1, 1)
070A: AS_actor 2@ attach_to_object 7@ offset 0.04 0.1 0.05 on_bone 6 16 perform_animation "NULL" IFP_file "NULL" time 15000 
05D3: AS_actor 2@ goto_point 2380.3999 -1897.975 13.5469 mode 4 time 4000 ms // versionA
wait 4000 ms
05D3: AS_actor 2@ goto_point 2379.8975 -1908.5413 13.5469 mode 4 time 7000 ms // versionA
wait 6000 ms
0639: AS_actor 2@ rotate_to_actor $PLAYER_ACTOR
wait 1000 ms
0108: destroy_object 7@
0ACC: show_text_lowpriority "There you go, sir" time 5000
wait 1000 ms
0605: actor $PLAYER_ACTOR perform_animation "EAT_Burger" IFP "food" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time 5000 ms
0ACC: show_text_lowpriority "Please, come again" time 3000
05D3: AS_actor 2@ goto_point 2398.4189 -1899.0492 13.5469 mode 4 time 12000 ms // versionA
wait 5000 ms
0350: set_actor 2@ maintain_position_when_attacked 1 
0446: set_actor 2@ dismemberment_possible 1 
0568: set_actor 2@ untargetable 1 
Actor.SetImmunities(2@, 0, 0, 0, 0, 0)
Car.DoorStatus(0@) = 1
072A: put_actor $PLAYER_ACTOR into_car 0@ driverseat 
0109: player $PLAYER_CHAR money += 9@
0109: player 2@ money += 40
0ACE: show_formatted_text_box "You have been charged 40$ for the meal" 2766
055E: set_player $PLAYER_CHAR max_health += 40
wait 10000 ms
009B: destroy_actor 2@
0249: release_model #WMYBELL
jump @Location





